﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="DanhSachSanPhamDaBan.aspx.cs" Inherits="LayoutTemplate.DanhSachSanPhamDaBan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Danh sách sản phẩm</title>
<style type="text/css">
.newStyle1 {
	width: 400px;
	height: 300px;
	float: left;
}

.Image 
{
	width: 200px;
	height: 200px;
}

.Link 
{
	width: 200px;
	height: 25px;
}
</style>
<% System.Collections.Generic.List<DAO_DTO_WS.DTO.SanPhamDTO> dsSanPham = new System.Collections.Generic.List<DAO_DTO_WS.DTO.SanPhamDTO>();
   dsSanPham = DAO_DTO_WS.DAO.SanPhamDAO.layDSSanPham();
   int count = dsSanPham.Count;
   	 for (int i = 0; i < count; ++i)
    {%>
	<div class="newStyle1">
		<%if(dsSanPham[i].TinhTrang==3)
            Response.Write("<div><img class=\"Image\" src=\"Images/banh%20bo.jpg\" /></div><div><a href=\"XemChiTietSanPham.aspx?id="
            + dsSanPham[i].MaSanPham.ToString() + "\">Xem chi tiet</a></div>"); 
		%>
	</div>
	<%} %>
</asp:Content>
